export const xdeviceTypeMap = [
  { code: 'unknown', label: '未知设备', color: 'grey' },
  { code: 'sensor', label: '检测器', color: 'blue' },
  { code: 'lock', label: '车位锁', color: 'orange' },
];

export const xdeviceType = (code: string) =>
  xdeviceTypeMap.find(item => item.code === code) || xdeviceTypeMap[0];
